<script setup lang="ts">
import { inject } from 'vue';
const {parentdata}=inject("parent",{parentdata:''});
</script>

<template>
    <div style="color:red;">{{parentdata}}</div>
</template>

<style lang="scss" scoped></style>
